<template>
  <div>
    <ul>
      <li v-for="(item, index) in datalist" :key="index">
        {{ item }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      datalist: ["首页", "分类", "购物车", "我的"],
    };
  },
};
</script>

<style scoped>
div {
  width: 100px;
}
li {
  list-style-type: none;
  padding: 10px;
  text-align: center;
}
</style>
